package com.j256.ormlite.harmony.compat;

import ohos.data.rdb.RdbStore;
import ohos.data.resultset.ResultSet;

/**
 * Basic class which provides no-op methods for all Harmony version.
 * 
 * @author graywatson
 */
public class BasicApiCompatibility implements ApiCompatibility {

	@Override
	public ResultSet rawQuery(RdbStore db, String sql, String[] selectionArgs, CancellationHook cancellationHook) {
		// NOTE: cancellationHook will always be null
		return db.querySql(sql, selectionArgs);
	}

	@Override
	public CancellationHook createCancellationHook() {
		return null;
	}
}
